Integrand size = 33, antiderivative size = 117 \[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=\frac {x^{1+m}}{2 (1+m)}-\frac {e^{-\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{1+m} \left (c x^n\right )^{\frac {1+m}{n}}}{8 (1+m)}-\frac {1}{4} e^{\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}} \log (x) \]
[Out]
Time = 0.18 (sec) , antiderivative size = 117, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {4581, 4577} \[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=-\frac {x^{m+1} e^{-\frac {2 a n \sqrt {-\frac {(m+1)^2}{n^2}}}{m+1}} \left (c x^n\right )^{\frac {m+1}{n}}}{8 (m+1)}-\frac {1}{4} x^{m+1} \log (x) e^{\frac {2 a n \sqrt {-\frac {(m+1)^2}{n^2}}}{m+1}} \left (c x^n\right )^{-\frac {m+1}{n}}+\frac {x^{m+1}}{2 (m+1)} \]
[In]
[Out]
Rule 4577
Rule 4581
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \text {Subst}\left (\int x^{-1+\frac {1+m}{n}} \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log (x)\right ) \, dx,x,c x^n\right )}{n} \\ & = -\frac {\left (x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \text {Subst}\left (\int \left (\frac {e^{\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}}}{x}-2 x^{-1+\frac {1+m}{n}}+e^{-\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{-1+\frac {2 (1+m)}{n}}\right ) \, dx,x,c x^n\right )}{4 n} \\ & = \frac {x^{1+m}}{2 (1+m)}-\frac {e^{-\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{1+m} \left (c x^n\right )^{\frac {1+m}{n}}}{8 (1+m)}-\frac {1}{4} e^{\frac {2 a \sqrt {-\frac {(1+m)^2}{n^2}} n}{1+m}} x^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}} \log (x) \\ \end{align*}
\[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=\int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx \]
[In]
[Out]
\[\int x^{m} {\sin \left (a +\frac {\ln \left (c \,x^{n}\right ) \sqrt {-\frac {\left (1+m \right )^{2}}{n^{2}}}}{2}\right )}^{2}d x\]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.25 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.91 \[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=-\frac {{\left (2 \, {\left (m + 1\right )} e^{\left (-\frac {2 \, {\left ({\left (m + 1\right )} n \log \left (x\right ) - 2 i \, a n + {\left (m + 1\right )} \log \left (c\right )\right )}}{n}\right )} \log \left (x\right ) - 4 \, e^{\left (-\frac {{\left (m + 1\right )} n \log \left (x\right ) - 2 i \, a n + {\left (m + 1\right )} \log \left (c\right )}{n}\right )} + 1\right )} e^{\left (\frac {2 \, {\left ({\left (m + 1\right )} n \log \left (x\right ) - 2 i \, a n + {\left (m + 1\right )} \log \left (c\right )\right )}}{n} + \frac {2 i \, a n - {\left (m + 1\right )} \log \left (c\right )}{n}\right )}}{8 \, {\left (m + 1\right )}} \]
[In]
[Out]
\[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=\int x^{m} \sin ^{2}{\left (a + \frac {\sqrt {- \frac {m^{2}}{n^{2}} - \frac {2 m}{n^{2}} - \frac {1}{n^{2}}} \log {\left (c x^{n} \right )}}{2} \right )}\, dx \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 173, normalized size of antiderivative = 1.48 \[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=\frac {4 \, {\left (\cos \left (2 \, a\right )^{2} + \sin \left (2 \, a\right )^{2}\right )} c^{\frac {m}{n} + \frac {1}{n}} x x^{m} - c^{\frac {2 \, m}{n} + \frac {2}{n}} x \cos \left (2 \, a\right ) e^{\left (m \log \left (x\right ) + \frac {m \log \left (x^{n}\right )}{n} + \frac {\log \left (x^{n}\right )}{n}\right )} - 2 \, {\left (\cos \left (2 \, a\right )^{3} + \cos \left (2 \, a\right ) \sin \left (2 \, a\right )^{2} + {\left (\cos \left (2 \, a\right )^{3} + \cos \left (2 \, a\right ) \sin \left (2 \, a\right )^{2}\right )} m\right )} \log \left (x\right )}{8 \, {\left ({\left (\cos \left (2 \, a\right )^{2} + \sin \left (2 \, a\right )^{2}\right )} c^{\frac {m}{n} + \frac {1}{n}} m + {\left (\cos \left (2 \, a\right )^{2} + \sin \left (2 \, a\right )^{2}\right )} c^{\frac {m}{n} + \frac {1}{n}}\right )}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 3.37 (sec) , antiderivative size = 498, normalized size of antiderivative = 4.26 \[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=-\frac {m^{2} n^{2} x x^{m} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} + m^{2} n^{2} x x^{m} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} - 2 \, m^{2} n^{2} x x^{m} + 2 \, m n^{2} x x^{m} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} + m n x x^{m} {\left | m n + n \right |} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} + 2 \, m n^{2} x x^{m} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} - m n x x^{m} {\left | m n + n \right |} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} - 4 \, m n^{2} x x^{m} + n^{2} x x^{m} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} + n x x^{m} {\left | m n + n \right |} e^{\left (2 i \, a - \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} + n^{2} x x^{m} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} - n x x^{m} {\left | m n + n \right |} e^{\left (-2 i \, a + \frac {n {\left | m n + n \right |} \log \left (x\right ) + {\left | m n + n \right |} \log \left (c\right )}{n^{2}}\right )} + 2 \, {\left (m n + n\right )}^{2} x x^{m} - 2 \, n^{2} x x^{m}}{4 \, {\left (m^{3} n^{2} + 3 \, m^{2} n^{2} - {\left (m n + n\right )}^{2} m + 3 \, m n^{2} - {\left (m n + n\right )}^{2} + n^{2}\right )}} \]
[In]
[Out]
Time = 28.00 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.24 \[ \int x^m \sin ^2\left (a+\frac {1}{2} \sqrt {-\frac {(1+m)^2}{n^2}} \log \left (c x^n\right )\right ) \, dx=\frac {x\,x^m}{2\,m+2}-\frac {x\,x^m\,{\mathrm {e}}^{-a\,2{}\mathrm {i}}\,\frac {1}{{\left (c\,x^n\right )}^{\sqrt {-\frac {2\,m}{n^2}-\frac {1}{n^2}-\frac {m^2}{n^2}}\,1{}\mathrm {i}}}}{4\,m+4-n\,\sqrt {-\frac {{\left (m+1\right )}^2}{n^2}}\,4{}\mathrm {i}}-\frac {x\,x^m\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{\sqrt {-\frac {2\,m}{n^2}-\frac {1}{n^2}-\frac {m^2}{n^2}}\,1{}\mathrm {i}}}{4\,m+4+n\,\sqrt {-\frac {{\left (m+1\right )}^2}{n^2}}\,4{}\mathrm {i}} \]
[In]
[Out]